package com.test.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.test.entity.dto.Interact;
import com.test.entity.dto.Topic;
import com.test.entity.dto.Type;
import com.test.entity.vo.request.CommentVo;
import com.test.entity.vo.request.TopicCreateVo;
import com.test.entity.vo.request.UpdateTopicVo;
import com.test.entity.vo.response.TopTopicVo;
import com.test.entity.vo.response.TopicComment;
import com.test.entity.vo.response.TopicDetailVo;
import com.test.entity.vo.response.TopicPreviewVo;

import java.util.List;

public interface TopicService extends IService<Topic> {
    public List<Type> getTypeList();
    public String createTopic(int id, TopicCreateVo vo);
    List<TopicPreviewVo> getListTopic(int type, int page);
    List<TopTopicVo> getTopTopic();
    TopicDetailVo getTopic(int tid,int id);
    void Interact(Interact interact,Boolean status);
    List<TopicPreviewVo> getCollects(int id);
    String topicUpdate(int id, UpdateTopicVo vo);

    String addComment(int id, CommentVo vo);
    List<TopicComment> getComment(int tid,int page);
    Void deleteComment(int id,int uid);

}
